package com.qzsoft.zhjd.common.enums;

/**
 * @ClassName BizCode
 * @Description 常用业务码
 * @author linhuawei
 * @since 2021-09-15
 */
public enum BizCode {

    SUCCESS(200, "操作成功"), 
    EXCEPTION(500, "未知异常，请联系管理员"),
    ERROR(1000, "操作失败"), 
    FILE_NO_EXISTS(1001, "文件不存在"),
    FILE_UPLOAD_FAIL(1002, "文件上传失败"),
    DATA_NOT_FOUND(1003, "数据不存在"),
    BAD_REQUEST(400, "Bad Request"),
    PARAMS_ERROR(1005, "参数错误");

    private int code;
    private String message;

    private BizCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}
